Game Def Format


The "Game Def" file sets up certain aspects of the game and loads global data, which will always be available no matter what part of the game is running.

Every "Game" must have a "Game Def", which must be named "game.def", and must appear in the "Game Folder".

Format Description


Example Game Def

;;;;;;;;;;;;;;;;;;;;
; Example Game Def ;
;;;;;;;;;;;;;;;;;;;;

Start Zone:       95   ;Game starts in "Zone 95"
Start Act:         0   ;Game starts in "Act 0" of "Zone 95"
Start Character 0: 0   ;Player 1 starts as Character 0
Start Character 1: 255 ;Player 2 starts as invalid (no Character)

Num Registers:     8
                   ;0- User Register 0 Description
                   ;1- User Register 1 Description
                   ;2- User Register 2 Description
                   ;3- User Register 3 Description
                   ;4- User Register 4 Description
                   ;5- User Register 5 Description
                   ;6- User Register 6 Description
                   ;7- User Register 7 Description


Main Font File:               ..\default\fonts.def


Number of Texts:    1
         Text 0:    Example Text


Main Music Def File:          music.def


Main Sound Effect Def File:   sfx.def


Number of Custom Constants per Character:  22
Number of Custom Variables per Character:  64

Common Character Data: chars\common.def

Number of Characters: 3

  Character 0 Script: chars\char0.def
  Character 1 Script: chars\char1.def
  Character 2 Script: chars\char2.def


Main Object Def File:      mastrobj.def


Number of Main Status Objects:   2

         Main Status Object 0:   stats\hud.def
         Main Status Object 1:   stats\gameover.def


Number of total Main Funcs:   3
Number of Main Func Files:    1
         Main Func File 0:    funcs\mainfunc.def
                              ;0- Game Function 0
                              ;1- Game Function 1
                              ;2- Game Function 2